namespace BingoServerCommon.DbModel
{
	using System;
	using System.Data.Entity;
	using System.ComponentModel.DataAnnotations.Schema;
	using System.Linq;

	public partial class BingoData : DbContext
	{
		public BingoData()
			: base("name=BingoData")
		{
		}

		public virtual DbSet<achievement> achievements { get; set; }
		public virtual DbSet<exp_level_config> exp_level_config { get; set; }
		public virtual DbSet<hurdle> hurdles { get; set; }
		public virtual DbSet<mall_commodities> mall_commodities { get; set; }
		public virtual DbSet<player> players { get; set; }

		protected override void OnModelCreating(DbModelBuilder modelBuilder)
		{
			modelBuilder.Entity<exp_level_config>()
				.Property(e => e.tips)
				.IsUnicode(false);

			modelBuilder.Entity<hurdle>()
				.Property(e => e.hurdle_status)
				.IsUnicode(false);

			modelBuilder.Entity<mall_commodities>()
				.Property(e => e.commodity_name)
				.IsUnicode(false);

			modelBuilder.Entity<mall_commodities>()
				.Property(e => e.type)
				.IsUnicode(false);

			modelBuilder.Entity<mall_commodities>()
				.Property(e => e.status)
				.IsUnicode(false);

			modelBuilder.Entity<player>()
				.Property(e => e.guid)
				.IsUnicode(false);

			modelBuilder.Entity<player>()
				.Property(e => e.account)
				.IsUnicode(false);

			modelBuilder.Entity<player>()
				.Property(e => e.nickname)
				.IsUnicode(false);

			modelBuilder.Entity<player>()
				.Property(e => e.portrait)
				.IsUnicode(false);

			modelBuilder.Entity<player>()
				.Property(e => e.password_hash)
				.IsUnicode(false);

			modelBuilder.Entity<player>()
				.Property(e => e.password_salt)
				.IsUnicode(false);

			modelBuilder.Entity<player>()
				.Property(e => e.cellphone)
				.IsUnicode(false);

			modelBuilder.Entity<player>()
				.Property(e => e.email)
				.IsUnicode(false);
		}
	}
}
